#include "StdAfx.h"
#include "RenderClip.h"

CRenderClip::CRenderClip(void)
{
}

CRenderClip::~CRenderClip(void)
{
	ASSERT(::GetObjectType(hDC) == OBJ_DC || ::GetObjectType(hDC) == OBJ_MEMDC);
	ASSERT(::GetObjectType(hRgn)==OBJ_REGION);
	ASSERT(::GetObjectType(hOldRgn)==OBJ_REGION);
	::SelectClipRgn(hDC, hOldRgn);
	::DeleteObject(hOldRgn);
	::DeleteObject(hRgn);
}
